//
//  NetworkManagerTests.swift
//  SinaWeiBo
//
//  Created by 谭淇 on 15/3/5.
//  Copyright (c) 2015年 &#35885;&#28103;. All rights reserved.
//

import UIKit
import XCTest

class NetworkManagerTests: XCTestCase {

    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }

    // 测试单例
    func testSingleton() {
        let mgr1 = NetworkManager.sharedManager
        let mgr2 = NetworkManager.sharedManager
        XCTAssert(mgr1 === mgr2, "对象不是单例")
    }

}
